package org.kjk.common;

import java.util.List;

import org.json.JSONException;
import org.json.JSONObject;

public interface DAO {

	public <T> int insert(T obj);

	public <T> int update(T obj);

	public <T> int delete(T obj);
	
	public int deleteAll();

	public <T> List<T> select(String sql, String[] param);

	public <T> List<T> selectAll();
	
	public JSONObject selectJson(String sql, String[] param)
			throws JSONException;
}
